package com.explam.springboot.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.time.LocalDateTime;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 * 负债表
 * </p>
 *
 * @author 作者
 * @since 2024-03-25
 */
@Getter
@Setter
@TableName("sys_liabilities")
@ApiModel(value = "Liabilities对象", description = "负债表")
public class Liabilities implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("用户id")
    private Integer userId;

    @ApiModelProperty("用户昵称")
    private String nickName;

    @ApiModelProperty("财务名称")
    private String financeName;

    @ApiModelProperty("剩余应还金额")
    private Float residueMoney;

    @ApiModelProperty("月供金额")
    private Float monthlySupplyMoney;

    @TableLogic
    @ApiModelProperty("是否删除 0-否 1-是")
    private Integer isDel;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty("创建时间")
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @ApiModelProperty("负债状况 0-已还完 1-未还完")
    private Integer status;


    @TableField(exist = false)
    private Double sumAll;

}
